//
//  GoodsDetailHasAnnounceCell.m
//  YunGou
//
//  Created by macbook on 16/6/16.
//  Copyright © 2016年 macbook. All rights reserved.
//

#import "GoodsDetailHasAnnounceCell.h"
#import "NSString+DateTransform.h"
#import <UIImageView+WebCache.h>
@interface GoodsDetailHasAnnounceCell ()
@property (weak, nonatomic) IBOutlet UIImageView *avaterImg;
@property (weak, nonatomic) IBOutlet UILabel *winner;
@property (weak, nonatomic) IBOutlet UILabel *announceTime;
@property (weak, nonatomic) IBOutlet UILabel *parttakeNum;
@property (weak, nonatomic) IBOutlet UILabel *winNumber;

@end

@implementation GoodsDetailHasAnnounceCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(ProductModel *)model{
    [_avaterImg sd_setImageWithURL:[NSURL URLWithString:[ImageUrl stringByAppendingString:model.img]]];
    _winner.text = model.username;
    _announceTime.text = [NSString stringWithFormat:@"%@",[NSString timeTransformWithString:[NSString stringWithFormat:@"%lf",model.q_end_time] andFormatter:@"yyyy.MM.dd HH:mm:ss"]];
    _parttakeNum.text = [NSString stringWithFormat:@"本期参与%ld人次",model.canyurenshu];
}
- (IBAction)calculateInfoClicked:(id)sender {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
